package com.kaifamiao.service.imp;

import com.kaifamiao.mapper.AdminMapper;
import com.kaifamiao.pojo.AdminUser;
import com.kaifamiao.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
public class AdminService implements IAdminService {

    @Autowired
    AdminMapper adminMapper = null;
    public AdminService(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public AdminUser findByUserName(String userName) {
        return adminMapper.findByUserName(userName);
    }
}
